/**
 *
 */
package anysware.core.dao;

import java.util.Collection;

/**
 *
 * TODO: doc me
 *
 * @author keke<keke@codehaus.org>
 * @revision $Revision: 107 $
 * @version 0.0.1
 * @param <E>
 * @param <ID>
 */
public interface GenericDao<E, ID> {
	GenericDao<E, ID> delete(E entity);

	E get(ID id);

	Collection<E> getByExample(E e);

	E getOnlyByExample(E e);

	Collection<E> listAll();

	GenericDao<E, ID> save(E entity);
}
